﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;

namespace BizScore.Model
{
    public class PostFinaNumber
    {

        /// <summary>
        /// 报考职位
        /// </summary>
        string bkzw = "";

        /// <summary>
        /// 岗位代码
        /// </summary>
        string postID = "";

        /// <summary>
        /// 岗位最终招聘人数
        /// </summary>
        int finalNumber = 0;


        /// <summary>
        /// 获得或者设置报考职位
        /// </summary>
        public string BKZW
        {
            get
            {
                return bkzw;
            }
            set
            {
                bkzw = value;
                if(string.IsNullOrEmpty(bkzw))
                {
                    return;
                }
                postID=Regex.Match(bkzw, "[0-9]*").Value;

            }
        }


        /// <summary>
        /// 获得或者设置岗位代码
        /// </summary>
        public string PostID
        {
            get
            {
                return postID;
            }
            set
            {
                postID = value;
            }
        }


        /// <summary>
        /// 岗位最终招聘人数
        /// </summary>
        public int FinalNumber
        {
            get
            {
                return finalNumber;
            }
            set
            {
                finalNumber = value;
            }
        }



    }
}
